<template>
  <div class="order-set-coupons">
    <div>
      <div>限时储值赠单品免费券</div>
      <div>立即购买<van-icon name="arrow" /></div>
    </div>
    <div>
      <div>优惠券</div>
      <div>1张可用<van-icon name="arrow" /></div>
    </div>
    <div>
      <div>礼品卡</div>
      <div>暂无可用礼品卡</div>
    </div>
    <div>
      <div>以优惠<span>￥0.00</span></div>
      <div>应付<span>￥32.00</span></div>
    </div>
  </div>
</template>

<script>
export default {};
</script>

<style scoped>
.order-set-coupons {
  width: 96%;
  margin: 2vw auto;
  background-color: white;
  padding: 0 3vw;
  box-sizing: border-box;
  border-radius: 2vw;
  font-size: 4vw;
}
.order-set-coupons > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.order-set-coupons > div:nth-child(1) {
  width: 96%;
  position: absolute;
  background-color: #fff9e9;
  margin-left: -3vw;
  padding: 3vw 3vw 3vw 10vw;
  box-sizing: border-box;
  border-radius: 2vw 2vw 0 0;
  overflow: hidden;
}
.order-set-coupons > div:nth-child(1)::before {
  content: "热卖";
  display: block;
  background-color: #ffc210;
  color: white;
  position: absolute;
  width: 14vw;
  text-align: center;
  padding-top: 4vw;
  font-size: 2vw;
  transform: rotate(-45deg);
  left: -6vw;
  top: -3vw;
}
.order-set-coupons > div:nth-child(1) > div:nth-child(2) {
  color: #a7d500;
}
.order-set-coupons > div:nth-child(2),
.order-set-coupons > div:nth-child(3) {
  padding: 15vw 0 5vw;
  border-bottom: 1px solid #e2e5e7;
}
.order-set-coupons > div:nth-child(2) > div:nth-child(1),
.order-set-coupons > div:nth-child(3) > div:nth-child(1) {
  position: relative;
  padding-left: 8vw;
}
.order-set-coupons > div:nth-child(2) > div:nth-child(1)::before {
  content: "卷";
}
.order-set-coupons > div:nth-child(3) > div:nth-child(1)::before {
  content: "卡";
}
.order-set-coupons > div:nth-child(2) > div:nth-child(1)::before,
.order-set-coupons > div:nth-child(3) > div:nth-child(1)::before {
  display: block;
  position: absolute;
  left: 0;
  top: 2px;
  font-size: 3vw;
  width: 6vw;
  height: 5vw;
  color: white;
  text-align: center;
  line-height: 5vw;
  background-color: #a7d500;
  border-radius: 1vw;
}

.order-set-coupons > div:nth-child(2) > div:nth-child(2) {
  color: #a7d500;
}
.order-set-coupons > div:nth-child(3) > div:nth-child(2) {
  color: #a0a4a7;
}
.order-set-coupons > div:nth-child(3) {
  padding: 5vw 0 5vw;
}
.order-set-coupons > div:nth-child(4) {
  justify-content: flex-end;
  padding: 5vw 0 5vw;
}
.order-set-coupons > div:nth-child(4) > div:nth-child(2) {
  margin-left: 5vw;
}
.order-set-coupons > div:nth-child(4) > div {
  font-size: 3vw;
}
.order-set-coupons > div:nth-child(4) > div:nth-child(1) > span {
  color: #a7d500;
}
.order-set-coupons > div:nth-child(4) > div span {
  font-size: 4vw;
  font-weight: bold;
}
</style>